<template>
  <div>
    <el-button @click="jump(1)"> 跳转 </el-button>
    <el-button @click="jump(2)"> 跳转 </el-button>
    <el-button @click="jump(3)"> 跳转 </el-button>
    <el-button @click="jump(4)"> 跳转 </el-button>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },

  methods: {
    jump(type) {
      this.$router.push({
        path: "/demo",
        query: {
          type: type,
          name: "zhansan",
        },
      });
    },
  },
};
</script>

<style>
</style>